from sqlalchemy_crud_plus import CRUDPlus
from APP.app.userprofile.models.user_info import UserInfo
from typing import Sequence
from sqlalchemy.ext.asyncio import AsyncSession

class CRUDExplicitProfile(CRUDPlus[UserInfo]):

    async def get_user_all(self,db: AsyncSession) -> Sequence[UserInfo]:
        """
        获取所有用户信息
        :return: 用户信息列表
        """
        
        return await self.select_models(db)


ExplicitProfileDao: CRUDExplicitProfile = CRUDExplicitProfile(UserInfo)
